<?php

use yii\db\Migration;

class m170901_090630_alter_cate extends Migration
{
    public function safeUp()
    {
        $this->addColumn('{{%cate}}', 'module_id', $this->smallInteger(2) . ' not null default 0 comment \'1 益智  2 音乐  3  形体\'');
    }

    public function safeDown()
    {
        $this->dropColumn('{{%cate}}', 'module_id');
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {

    }

    public function down()
    {
        echo "m170901_090630_alter_cate cannot be reverted.\n";

        return false;
    }
    */
}
